package com.grj.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 文章草稿表层
 * @TableName blog_article_draft
 */
@TableName(value ="blog_article_draft")
@Data
public class BlogArticleDraft implements Serializable {
    /**
     * 草稿记录唯一ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 关联文章ID
     */
    private Long articleId;

    /**
     * 草稿标题
     */
    private String title;

    /**
     * 草稿内容
     */
    private String content;

    /**
     * 草稿版本号
     */
    private Integer version;

    /**
     * 作者ID
     */
    private Long userId;

    /**
     * 草稿创建时间
     */
    private Date createdTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}